<?php
/***************************************************************************
 *   Copyright (C) 2007 by Andrea Blankenstijn, David Dieulivol            *
 *   darkan9el@gmail.com, daviddieulivol5@hotmail.com                      *
 *                                                                         *
 *   All rights reserved.                                                  *
 *   This work is released under the terms of the New BSD License.         *
 *   See LICENSE.BSD file for licensing details                            *
 ***************************************************************************/
/* * *
* $Id: listGalleries.php 46 2007-08-18 18:13:38Z DarkAn9el $
* * */

$galleries = Gallery::listGalleries($odb);
?>
<ul>
	<?php
	foreach($galleries as $gallery)
	{
		$date = strftime('%Y - %B', strtotime($gallery['creationDate']));
		$text = '<strong>'. $gallery['name'] .'</strong> ('. $date .')';
		$link = '<a href="?viewGallery='. $gallery['idGalleries'] .'">'. $text .'</a>';

		echo '<li>', $link ,'</li>';
	}
	?>
</ul>
<span><em>$Id: listGalleries.php 46 2007-08-18 18:13:38Z DarkAn9el $</em></span>
